package com.smartcruise.base;

import android.content.Intent;
import android.widget.BaseAdapter;

/**
 * Created by FengChaoQun
 * on 2018/1/27 0027
 * 数据编辑界面的接口
 */

public interface DataEditContract {

    interface View extends BaseNormalView {

        void setData(BaseAdapter audio, BaseAdapter image, BaseAdapter video);

        void setText(String text);

        String getText();

        void notifyAudiosChange(BaseAdapter baseAdapter);

        void notifyImagesChange(BaseAdapter baseAdapter);

        void notifyVideosChange(BaseAdapter baseAdapter);

        void showDeleteButton(boolean show);

        void showSaveButton(boolean show);

        void showUploadButton(boolean show);

    }

    interface Presenter extends BasePresenter {

        void addAudio(String audioPath);

        void reduceAudio(String audioPath);

        void addImage(String imagePath);

        void reduceImage(String imagePath);

        void addVideo(String videoPath);

        void reduceVideo(String videoPath);

        void clickOnBack();

        void delete();

        void clickOnSave();

        void clickOnUpload();

        void onActivityResult(int requestCode, int resultCode, Intent data);

        void openAudioRecord();

        void openCamera();

        void openVideo();

        void openScan();

    }

}
